<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <title></title>
    <link rel="stylesheet" href="/css_system/common.css"/>
    <link rel="stylesheet" href="/css_system/main.css"/>
    <link href="/js_system/jQueryUI/jquery-ui.css" rel="stylesheet">
    <link rel="stylesheet" href="/js_system/easydialog/easydialog.css"/>
    <script  src="/js_system/easydialog/easydialog.js"></script>
    <script  src="/js_system/cueeasy.js"></script>
    <script  src="/js_system/jquery.min.js"></script>
    <script  src="/js_system/common.js"></script>
    <script  src="/js_system/readingparty.js"></script>
    <script src="https://cdn.bootcss.com/angular.js/1.6.4/angular.min.js"></script>
    <script  src="/admin/js/adminModule.js"></script>
    <script  src="/admin/js/service.js"></script>
</head>
<body ng-app="admin-app" ng-controller="companyController">
<div class="container">
    <div class="location clearfix">
        <div class="here_area fl">
            <strong>当前位置：</strong>公司管理&nbsp;&nbsp;&raquo;&nbsp;&nbsp;公司雇员列表
        </div>
        <div class="here_btn fr">
            <input type="button"   class="btn btn_back" value="返回"      onclick="history.back();"/>
            <input type="button"  class="btn btn_refresh" value="刷新"    onclick="location.reload()"/>
            {{--<a href='{{asset('admin_system/company/load_member?companyId='.$companyId)}}'>--}}
                {{--<input type="button" class="btn btn_add" value="导入" />--}}
            {{--</a>--}}
        </div>
    </div>


    <form class="filter clearfix" action="{{asset('admin_system/company/members')}}" method="post">
        <dl >
            <dt>查询关键词：</dt>
            <dd>
                <input type="hidden" value="{{$companyId}}" name="companyId">
                <input value="{{$keyword}}" class="input-text"  name="keywords">
                {{csrf_field()}}
            </dd>
            <dd>
                <input type="submit"  class="button button-primary"  value="搜 索">
            </dd>
        </dl>
    </form>
    <table class="dataTable">
        <tr>
            <th>姓名</th>
            <th>手机号</th>
            <th>读书会</th>
            <th>职务</th>
            <th>会员时间</th>
            {{--<th>操作</th>--}}
        </tr>
        @foreach($members as $data)
            <tr>
                <td>{{$data->YourName}}</td>
                <td>{{$data->UserName}}</td>
                <td style="text-align: left;">
                    @foreach($data->readpartys as $par)
                        <p>{{$par}}</p>
                    @endforeach
                </td>
                <td>{{$data->job}}</td>
                <td>{{$data->MemEndTime}}</td>
                {{--<td>--}}
                    {{--<span class="deleteBtn"  ng-click="quit_company({{$data->company_id}},{{$data->UserID}})"></span>--}}
                {{--</td>--}}
            </tr>
        @endforeach
    </table>

    <div class="pagectrl clearfix">
        {!! $members->appends(['companyId'=>$companyId])->links() !!}
    </div>
</div>
</body>
</html>